/*12/14/09 19:02
*
*Cha Li
*CS4804 - Final Project
*Developed in Ubuntu 9.04 x64
*Compiled using g++
*
*/

#include "EquationHelper.h"
using namespace std;

bool isTopEdge(int index, int rows, int gamma){
	return (((index - gamma) % (rows + 1)) == 0) ? true : false;
}

bool isBottomEdge(int index, int rows, int gamma){
	return (((index - gamma + 1) % (rows + 1)) == 0) ? true : false;
}

bool isLeftEdge(int index, int cols){
	return ((index % (cols + 1)) == 0 ) ? true : false; 	
}

bool isRightEdge(int index, int cols){
	return (((index + 1) % (cols + 1)) == 0 ) ? true : false; 	
}

	

